import { createHashRouter } from "react-router-dom";
import Home from "@/pages/Home";
import NotFound  from "@/pages/NotFound";
import Article from "@/pages/Article/index";
import Layout from "@/pages/Layout/index";


const router = createHashRouter([
  {
    path:"/",
    Component: Layout,
    children:[
      {path:"/home",Component: Home },
      {path:"/article/:name/:age",Component: Article },
      {path:"*",Component: NotFound },
     ]  
  },
  {path:"*",Component: NotFound },
])


export default router;